﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Bird.OAWeb.Domain.DTO;
using Bird.OAWeb.Domain.Table;
using Bird.OAWeb.EF;
using Bird.OAWeb.Ropesitory;

namespace Bird.OAWeb.Service.IService
{
    public interface IUserService
    {
        /// <summary>
        /// 用户登录
        /// </summary>
        /// <param name="use"></param>
        /// <returns></returns>
        public UserDTO Loggin(UserDTO use);
        /// <summary>
        /// 用户添加
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public int Logginadd(User obj);
        /// <summary>
        /// 用户显示
        /// </summary>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        public PageList<User> UserShow(int pageIndex=1,int pageSize=2);
        /// <summary>
        /// 用户删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public bool UserDelete(int id);
        /// <summary>
        /// 用户反填
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public User UserBind(int id);
        /// <summary>
        /// 用户修改
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public bool UserUpdate(User model);
    }
}
